package com.cc.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
@ApiModel(value = "LoginUserEntity", description = "登录用户对象")
public class LoginUserEntity {

    @ApiModelProperty(value = "电话号码", dataType = "String", required = true)
    private String phone;
    @ApiModelProperty(value = "密码", dataType = "String", required = true)
    private String password;
    @ApiModelProperty(value = "权限,1:普通员工2:客户", dataType = "Integer", required = true, allowableValues = "1,2")
    private Integer permission;

}
